package com.koala.learn.asserttest;

import org.junit.Test;

/**
 * @author yantingrui
 * @date 2022/2/17   11:23
 */
public class Start {

    public static void main(String[] args) {
        int a = 120;
        Integer b = 120;
        Integer c = new Integer(120);
        System.out.println(a == b);   // true
        System.out.println(a == c);   // true
        System.out.println(b == c);   // false
    }

    /**
     *
     */
    @Test
    public void test25() {
        int a = 300;
        Integer b = 300;
        Integer c = new Integer(300);
        System.out.println(a == b);   // true
        System.out.println(a == c);   // true
        System.out.println(b == c);   // false
    }

    /**
     *
     */
    @Test
    public void test39() {
        Integer a = 300;
        Integer b = 300;
        Integer c = 100;
        Integer d = 100;
        System.out.println(a == b);  //false
        System.out.println(c == d);  // true
    }
}
